#use this to build spacedock in linux

CC=g++
CFLAGS=-c -Wall
LDFLAGS=-l glut
SOURCES= main.cpp ../src/chipmunk.cpp ../src/cpBB.cpp ../src/cpHashSet.cpp ../src/cpShape.cpp ../src/cpVect.cpp ../src/cpArbiter.cpp ../src/cpBody.cpp ../src/cpJoint.cpp ../src/cpSpace.cpp ../src/cpArray.cpp ../src/cpCollision.cpp ../src/cpPolyShape.cpp ../src/cpSpaceHash.cpp sdGraphics.cpp sdInput.cpp sdObject.cpp sdUniverse.cpp sdPlayer.cpp sdShip.cpp sdBad.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=spacedockgame

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@; rm *.o ../src/*.o

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

